package com.rui.cn.provider.controller.system;

import com.rui.cn.entity.system.SysUserRole;
import com.rui.cn.provider.service.system.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/sysuserrole")
public class SysUserRoleController {
    @Autowired
    private SysUserRoleService sysUserRoleService;

    @DeleteMapping(value = "/deleteByMap")
    public void deleteByMap(@RequestBody Map<String, Object> map){
        sysUserRoleService.deleteByMap(map);
    }

    @PostMapping(value = "/insert")
    public void insert(@RequestBody SysUserRole sysUserRole){
        sysUserRoleService.insert(sysUserRole);
    }
}
